# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

EXPORTS.mozilla += [
    'BrowserElementParent.h',
]

EXPORTS.mozilla.dom += [
    'BrowserElementAudioChannel.h',
]

SOURCES += [
    'BrowserElementAudioChannel.cpp',
    'BrowserElementParent.cpp',
]

XPIDL_SOURCES += [
    'nsIBrowserElementAPI.idl',
]

XPIDL_MODULE = 'browser-element'

EXTRA_COMPONENTS += [
    'BrowserElementParent.js',
    'BrowserElementParent.manifest',
    'BrowserElementProxy.js',
    'BrowserElementProxy.manifest',
]

EXTRA_JS_MODULES += [
    'BrowserElementPromptService.jsm',
]

LOCAL_INCLUDES += [
    '/dom/html',
]

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
    '/dom/',
    '/dom/base',
    '/dom/ipc',
]

MOCHITEST_MANIFESTS += [
    'mochitest/mochitest-oop.ini',
    'mochitest/mochitest.ini',
    'mochitest/priority/mochitest.ini',
]

MOCHITEST_CHROME_MANIFESTS += [
    'mochitest/chrome.ini',
    'mochitest/priority/chrome.ini',
]
